PROJECT(ExternalCmdNotificator)
INCLUDE_DIRECTORIES(${QT_INCLUDE_DIR}
					${CMAKE_SOURCE_DIR}/libwm/notification
					${CMAKE_BINARY_DIR}/plugins/notificators/ExternalCmdNotificator)

SET(ExternalCmdNotificator_sources
	externalcmdnotificator.cpp
	externalcmdnotificatorconfig.cpp)

SET(ExternalCmdNotificator_headers
	externalcmdnotificator.h
	externalcmdnotificatorconfig.h)

SET(ExternalCmdNotificator_ui
	externalcmdnotificatorconfig.ui)

QT4_WRAP_CPP(ExternalCmdNotificator_moc ${ExternalCmdNotificator_headers})
QT4_WRAP_UI(UI_HEADERS ${ExternalCmdNotificator_ui})

ADD_LIBRARY(ExternalCmdNotificator MODULE  ${UI_HEADERS}  ${ExternalCmdNotificator_sources} ${ExternalCmdNotificator_moc})
TARGET_LINK_LIBRARIES(ExternalCmdNotificator ${QT_LIBRARIES} ${spelling_libs} wm)
SET_TARGET_PROPERTIES(ExternalCmdNotificator PROPERTIES LIBRARY_OUTPUT_DIRECTORY ..)

INSTALL(TARGETS ExternalCmdNotificator LIBRARY DESTINATION ${LIBDIR}/plugins/notificators)

